Skip to content

feat(execution): add the shared profile lock, identity and trash primitives - #831

Open
harenome wants to merge 1 commit into
ThinkFlowLab:mainfrom
harenome:feat/shared-delete-primitives
Open

harenome wants to merge 1 commit into
ThinkFlowLab:mainfrom
harenome:feat/shared-delete-primitives

Conversation

@harenome

@harenome harenome commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #826

What

Primitives only: nothing deletes.

  • paths.profile_lock(): one permanent lock in the user data directory.
  • ondisk.locked(path, deadline): optional monotonic deadline shared by nested locks; Busy releases earlier holds. Without one it blocks as before.
  • identity: profile origin, first owner of a workspaces root, workspace identity and digest, run generation with legacy fallback.
  • trash: <root>/.trash/<kind>/<name>.<token>/, discovery predicate, intent.json validation, nonblocking collector lock per kind.

Touches

app/nullius/ondisk.py, paths.py, new identity.py, trash.py, tests.

Verified

  • Suites, docs check.
  • One-second default: Busy at 1000.1 ms; free lock 0.02 ms; blocking caller behind a 1200 ms hold waits 1200.2 ms.

Risk

  • A profile whose data directory changes path, device or inode (moved, copied) inherits no pending deletion or workspaces folder.

Agents

Claude Code, Fable 5.2
Codex, GPT-6.2-Astra (review)

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Dec 4, 2026
@harenome
harenome force-pushed the feat/shared-delete-primitives branch from 57244d5 to 5873e40 Compare December 4, 2026 08:26
@harenome
harenome marked this pull request as ready for review December 4, 2026 08:26
@github-actions github-actions Bot added needs review Tests pass, no conflict, no verdict on its latest commit and removed merge conflict Conflicts with its base: merge or rebase it labels Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Tests pass, no conflict, no verdict on its latest commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete redesign, step 1: profile lock, identity and trash building blocks

1 participant